<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
<!--js数据类型-->
// 原始类型
// 引用类型
var a;
console.log(a,typeof a); //undefined未定义型
//1.定义js对象
let obj={
    name:'张三',
    age:18
}
obj.like='apple'
console.log(obj)
console.log(obj.name)
console.log(obj.age)
let arr=['后裔','鲁班','貂蝉',1,true,6.6]
console.log(arr)
console.log(typeof arr)
console.log(arr[1])
</script>
</body>
</html>